05. Binomial Distributions Quiz
Binomial Distributions Quiz
In this quiz, you will simulate coin flips using np.random.binomial
to compute proportions for the following outcomes.
- A fair coin flip produces heads
- Five fair coin flips produce exactly one head
- Ten fair coin flips produce exactly four heads
- Five biased coin flips with P(H) = 0.8 produce exactly five heads
- Ten biased coin flips with P(H) = 0.15 produce at least three heads
Then, you'll compare these proportions with probabilities in the quizzes below.
Code
If you need a code on the https://github.com/udacity.
QUIZ QUESTION::
Use the proportions you observed in your simulation data above to state the probability of each of the following outcomes.
ANSWER CHOICES:
Outcome |
Probability |
---|---|
A fair coin flip produces heads |
|
Five fair coin flips produce exactly one head |
|
Ten fair coin flips produce exactly four heads |
|
Five biased coin flips with P(H) = 0.8 produce exactly five heads |
|
Ten biased coin flips with P(H) = 0.15 produce at least three heads |
SOLUTION:
Outcome |
Probability |
---|---|
Five biased coin flips with P(H) = 0.8 produce exactly five heads |
|
Ten fair coin flips produce exactly four heads |
|
Ten biased coin flips with P(H) = 0.15 produce at least three heads |
|
Five fair coin flips produce exactly one head |
|
A fair coin flip produces heads |